// 同理可以判断是数据类型数组的方法

let a = [];
console.log(a instanceof Array);

console.log(a.constructor === Array);

console.log(Array.prototype.isPrototypeOf(a));
console.log(Object.getPrototypeOf(a) === Array.prototype);
console.log(Object.prototype.toString.apply(a) === "[object Array]");
console.log(Array.isArray(a));
